import React from 'react';
import { connect } from 'react-redux';
import HomeComponent from '../components/Home';

class HomeContainer extends React.Component {
  render() {
    return (
      <HomeComponent {...this.props} />
    );
  }
}

export default connect((state) => {
  const { Home } = state;
  const { saleFilterObj, FilterObjMy, FilterObjOther, FilterObjChannel } =
    state.SaleChanceFilterReducer;
  const { saleChanceData, myCustomerData } = state.saleChanceReducer;
  return {
    Home,
    saleFilterObj,
    FilterObjMy,
    FilterObjOther,
    FilterObjChannel,
    saleChanceData,
    myCustomerData,
  };
})(HomeContainer);
